package com.llkj.common.model;

/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/5/8
 * desc  : EventBus传递消息总体类
 */
public class BaseEvent<T> {

    private int code;
    private T t;

    public BaseEvent() {
    }

    public BaseEvent(int code, T t) {
        this.code = code;
        this.t = t;
    }

    public BaseEvent(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    @Override
    public String toString() {
        return "BaseEvent{" +
                "code=" + code +
                ", t=" + t +
                '}';
    }
}
